import Vue from 'vue'
import Router from 'vue-router'
import App from '../views/App.vue'
import Home from './home'
import Same from './same'
import Study from './study'
import Think from './think'
import Workplace from './workplace'
import User from './user'

Vue.use(Router)

export default new Router({
    base: process.env.BASE_URL,
    routes: [{
        path: '/',
        redirect: '/home',
        component: App,
        children: ([]).concat(Home, Same, Study, Think, Workplace, User)
    }]
})
